# from functools import wraps
# from django.shortcuts import render, redirect
#
#
# def requires_auth(func):
#
#     @wraps(func)
#     def decorated(*args,**kwargs):
#         print(args)
#         print(kwargs)
#         cookie_auth = args[0].COOKIES.get("ticket")
#         if not cookie_auth:
#             return redirect("/login/")
#
#     return decorated()
